home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 146
/
(Vol 146) Jan 07 2012.iso
/
Games
/
tontie_hammer.swf
/
scripts
/
DefineSprite_241
/
frame_7
/
PlaceObject2_164_1
/
CLIPACTIONRECORD onClipEvent(load).as
Wrap
Text File
|
2012-01-07
|
712b
|
32 lines
onClipEvent(load){
if(_root.hammer_lv >= 2)
{
i = Math.floor(Math.random() * 2);
if(i != 0)
{
with(_parent)
{
nextFrame();
}
}
}
if(_parent._parent._name == "up_boad")
{
with(this)
{
gotoAndStop("info");
}
}
hp = 3;
attack = 0;
score = 50;
_parent.item = "life";
_parent._parent._parent._parent.hp = hp;
_parent._parent._parent._parent.attack = attack;
_parent._parent._parent._parent.score = score;
_parent._parent._parent._parent.coin = coin;
_parent._parent.life = hp;
_parent._parent.damage = - attack;
_parent._parent.point = score;
}